package sk.vrto.web.events;

import sk.vrto.domain.Contact;

/**
 * Should be fired when new contact is inserted.
 */
public class ContactInsertedEvent {

    private final Contact newContact;

    public ContactInsertedEvent(Contact newContact) {
        this.newContact = newContact;
    }

    public Contact getNewContact() {
        return newContact;
    }

    @Override
    public String toString() {
        return "ContactInsertedEvent{" +
                "newContact=" + newContact +
                '}';
    }

}
